<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>登录&注册</title>
    <style>
        body {
            font-family: Arial, sans-serif;
            background-color: #f5f5f5;
            margin: 0;
            padding: 0;
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 100vh;
        }
        
        .container {
            background-color: white;
            padding: 30px;
            border-radius: 8px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
            width: 350px;
        }
        
        h2 {
            text-align: center;
            margin-bottom: 25px;
            color: #333;
        }
        
        .form-group {
            margin-bottom: 20px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #555;
        }
        
        input[type="text"], input[type="password"], input[type="email"], input[type="date"], select, textarea {
            width: 100%;
            padding: 12px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 16px;
        }
        
        input[type="text"]:focus, input[type="password"]:focus, input[type="email"]:focus, 
        input[type="date"]:focus, select:focus, textarea:focus {
            border-color: #4CAF50;
            outline: none;
        }
        
        .radio-group, .checkbox-group {
            margin-top: 5px;
        }
        
        .radio-item, .checkbox-item {
            margin-bottom: 8px;
        }
        
        .radio-item input, .checkbox-item input {
            width: auto;
            margin-right: 8px;
        }
        
        .radio-item label, .checkbox-item label {
            display: inline;
            font-weight: normal;
        }
        
        button {
            width: 100%;
            padding: 12px;
            background-color: #4CAF50;
            color: white;
            border: none;
            border-radius: 4px;
            font-size: 16px;
            cursor: pointer;
            margin-top: 10px;
        }
        
        button:hover {
            background-color: #45a049;
        }
        
        .form-section {
            margin-bottom: 30px;
        }
        
        .form-divider {
            height: 1px;
            background-color: #eee;
            margin: 20px 0;
        }
    </style>
</head>
<body>
    <div class="container">
        <!-- 登录表单 -->
        <div class="form-section">
            <h2>用户登录</h2>
            <form action="#" method="post">
                <div class="form-group">
                    <label for="login-username">用户名</label>
                    <input type="text" id="login-username" name="username" required>
                </div>
                <div class="form-group">
                    <label for="login-password">密码</label>
                    <input type="password" id="login-password" name="password" required>
                </div>
                <button type="submit">登录</button>
            </form>
        </div>
        
        <!-- 分隔线 -->
        <div class="form-divider"></div>
        
        <!-- 注册表单 -->
        <div class="form-section">
            <h2>用户注册</h2>
            <form action="#" method="post">
                <div class="form-group">
                    <label for="register-username">用户名</label>
                    <input type="text" id="register-username" name="username" required>
                </div>
                <div class="form-group">
                    <label for="register-email">邮箱</label>
                    <input type="email" id="register-email" name="email" required>
                </div>
                <div class="form-group">
                    <label for="register-password">密码</label>
                    <input type="password" id="register-password" name="password" required>
                </div>
                <div class="form-group">
                    <label for="confirm-password">确认密码</label>
                    <input type="password" id="confirm-password" name="confirm-password" required>
                </div>
                <div class="form-group">
                    <label>性别</label>
                    <div class="radio-group">
                        <div class="radio-item">
                            <input type="radio" id="gender-male" name="gender" value="male">
                            <label for="gender-male">男</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" id="gender-female" name="gender" value="female">
                            <label for="gender-female">女</label>
                        </div>
                        <div class="radio-item">
                            <input type="radio" id="gender-other" name="gender" value="other">
                            <label for="gender-other">其他</label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label for="register-birthday">出生日期</label>
                    <input type="date" id="register-birthday" name="birthday">
                </div>
                <div class="form-group">
                    <label>兴趣爱好</label>
                    <div class="checkbox-group">
                        <div class="checkbox-item">
                            <input type="checkbox" id="hobby-reading" name="hobbies" value="reading">
                            <label for="hobby-reading">阅读</label>
                        </div>
                        <div class="checkbox-item">
                            <input type="checkbox" id="hobby-sports" name="hobbies" value="sports">
                            <label for="hobby-sports">运动</label>
                        </div>
                        <div class="checkbox-item">
                            <input type="checkbox" id="hobby-music" name="hobbies" value="music">
                            <label for="hobby-music">音乐</label>
                        </div>
                        <div class="checkbox-item">
                            <input type="checkbox" id="hobby-travel" name="hobbies" value="travel">
                            <label for="hobby-travel">旅行</label>
                        </div>
                    </div>
                </div>
                <div class="form-group">
                    <label for="register-address">地址</label>
                    <textarea id="register-address" name="address" rows="3" placeholder="请输入详细地址"></textarea>
                </div>
                <div class="form-group">
                    <label for="register-phone">电话号码</label>
                    <input type="text" id="register-phone" name="phone" placeholder="请输入手机号码">
                </div>
                <button type="submit">注册</button>
            </form>
        </div>
    </div>
</body>
</html>